package com.hardson.toolkit.kaptcha;

import java.util.TimerTask;

public class AutoCleanTask extends TimerTask {
	private static boolean isRunning = false;

	public AutoCleanTask() {
	}

	@Override
	public void run() {
		if (!isRunning) {
			isRunning = true;
			this.executeJob();
			isRunning = false;
		}
	}

	public void executeJob() {
		KaptchaUtil.checkExpired();
	}
}
